function isFunction(obj)
{
    return (typeof obj === 'function');
}

function isMobile(mobile)
{
    if (/^1[34578]\d{9}$/.test(mobile)) {
        return true;
    }

    return false;
}

function obj2uri(obj)
{
    return Object.keys(obj).map(key => {
        return encodeURIComponent(key) + '=' + encodeURIComponent(obj[key]);
    }).join('&');
}

exports = module.exports = {
    isFunction  : isFunction,
    isMobile    : isMobile,
    obj2uri     : obj2uri,
};
